package com.sg.business.commons.labelprovider.document;

import com.sg.business.model.Document;
import com.sg.widgets.commons.labelprovider.OptionValueLabelProvider;

public class SecurityLabelProvider extends OptionValueLabelProvider {

	@Override
	protected String getOptionId() {
		return "document.security.option";
	}
	
	@Override
	protected Object getValue(Object element) {
		if(element instanceof Document){
			return ((Document) element).getValue(Document.F_SECURITY);
		}else if(element instanceof String){
			return element;
		}
		return super.getValue(element);
	}

}
